package org.yray.io.gcdemo;

import java.util.*;

/**
 * @author lyg
 * @date 2021/9/12 15:22
 */
public class Oom {
    public static void main(String[] args) throws InterruptedException {
        List<BigObj> list=new ArrayList<>();
        for(int i=0;i<5000;i++)
        {
            list.add(createObj());
            Thread.sleep(50);
        }
    }

    private static BigObj createObj()
    {
        BigObj b=new BigObj();
        return b;

    }
    static class BigObj{
        public byte[] place=new byte[5*1024*1024];
    }
}
